privateKeyEntry

Returns the Android Keystore entry of the identity stored under alias, for use with Signature, KeyManagerFactory, or an SSLContext. The private key stays inside Android Keystore.

Return

the entry, or null if alias has no entry or holds only a certificate.

Throws

if alias is blank or contains NUL, CR, or LF, or this store was not created by CertificateStore.forCurrentPlatform.